﻿using MotorLibrary.Repository;
using MotorLibrary.Repository.DTO;
using System.Collections.Generic;

namespace MotorLibrary.Service
{
    public class TipoService: ITipoService
    {
        private ITipoRepository _tipoRepository;

        public TipoService(ITipoRepository tipoRepository)
        {
            this._tipoRepository = tipoRepository;
        }

        public IList<TipoDTO> List()
        {
            return _tipoRepository.List();
        }

        public TipoDTO Read(long id)
        {
            return _tipoRepository.Read(id);
        }
    }
}
